package com.tool.spring.dao;

/**
 * @Author: lixiaofei
 * 通过构造工厂方法来创建Dao
 */
public class DaoFactory {
	private static DaoFactory instance=new DaoFactory();
	private DaoFactory(){}
	public static DaoFactory getInstance() {
		return instance;
	}
    public UserDao createUserDao(){
    	return new UserDao4OracleImpl();
//    	return new UserDao4MysqlImpl();
    }
}
